<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Content-Language" content="en" />
    <title>s6-linux-init: quickstart</title>
    <meta name="Description" content="s6-linux-init: quickstart" />
    <meta name="Keywords" content="s6-linux-init installation quickstart quick start" />
    <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
  </head>
<body>

<p>
<a href="index.html">s6-linux-init</a><br />
<a href="//skarnet.org/software/">Software</a><br />
<a href="//skarnet.org/">skarnet.org</a>
</p>

<h1> Quickstart for s6-linux-init </h1>

<h2> Quickstart </h2>

<ol>
 <li> Install all the s6-linux-init dependencies:
  <ul>
   <li> <a href="//skarnet.org/software/skalibs/">skalibs</a> </li>
   <li> <a href="//skarnet.org/software/execline/">execline</a> </li>
   <li> <a href="//skarnet.org/software/s6/">s6</a> </li>
  </ul> </li>
 <li> Save and remove your old <tt>/etc/s6-linux-init</tt> directory, if you have one. </li>
 <li> Install <a href="index.html">s6-linux-init</a> itself. </li>
 <li> Save your old <tt>/sbin/init</tt>, <tt>/sbin/telinit</tt>, <tt>/sbin/shutdown</tt>,
<tt>/sbin/halt</tt>, <tt>/sbin/poweroff</tt> and <tt>/sbin/reboot</tt> binaries. </li>
 <li> Make sure you have a <tt>/run</tt> directory. </li>
 <li> Edit the scripts in <tt>/etc/s6-linux-init/skel</tt>. </li>
 <li> Check that your devtmpfs is automounted by your kernel at boot time. If it is not,
add the <tt>-d 1</tt> option to the <tt>s6-linux-init-maker</tt> command line below. </li>
 <li> As root, run: <pre>
     rm -rf /tmp/blah
     s6-linux-init-maker -1 -G "/sbin/getty 38400 tty1" /tmp/blah
     rm -rf /etc/s6-linux-init/current
     mv /tmp/blah /etc/s6-linux-init/current
     cp -a /etc/s6-linux-init/current/bin/* /sbin/ </pre> </li>
 <li> Reboot. </li>
 <li> Congratulations! your machine is now running a s6-based init system. </li>
 <li> To shut the machine down, use <tt>/sbin/shutdown</tt>, <tt>/sbin/halt</tt>,
<tt>/sbin/poweroff</tt> or <tt>/sbin/reboot</tt> as usual. </li>
</ol>

</body>
</html>
